<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>车辆修改 - 小黄车 后台</title>
<%@ include file="/common/include/title.jsp"%>
</head>
<body>
	<%-- 静态包含 --%>
	<%@ include file="/common/include/header.jsp"%>

	<div class="container-fluid">
		<div class="row">
			<div class="col-sm-8 col-sm-offset-1 main">
				<h2 class="sub-header">修改车辆信息</h2>

				<form id="form" class="form-horizontal" 
						method="post"
					action="${rootPath }/back/BikeServlet?method=bikeUpdateSubmit">
						<div class="form-group">
							<label for="name" class="col-sm-2 control-label">分类:</label>
							<div class="col-sm-8">
								<select name="cateId" class="form-control">
									<%-- 循环分类 --%>
									<c:forEach items="${requestScope.cateList }" var="cate" varStatus="stat">
										<option value="${cate.id }">${cate.name }</option>
									</c:forEach>							
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="name" class="col-sm-2 control-label">名称(数字):</label>
							<div class="col-sm-8">
								<input id="name" name="name" value="" class="form-control" placeholder="名称" type="text">
							</div>
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">价格:</label>
							<div class="col-sm-8">
								<input id="price" name="price" value="" class="form-control" placeholder="价格/半小时" type="text">
							</div> 
						</div>
						<div class="form-group">
							<label for="status" class="col-sm-2 control-label">状态:</label>
							<div class="col-sm-8">
								<input id="status1" name="status" value="1" checked="checked" type="radio">
								<label for="status1">启用</label>
								<input id="status0" name="status" value="0" type="radio">
								<label for="status0">禁用</label>
							</div> 
						</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-2">
								<button class="btn btn-lg btn-primary" type="submit">提交</button>
							</div>
						</div>
					</form>
			</div>
		</div>
	</div>


	<!-- 提示信息 -->
	<div class="container">
		<div class="col-sm-8 col-sm-offset-1">${requestScope.info }</div>
	</div>
	<%@ include file="/common/include/footer.jsp"%>
</body>
</html>